# -*- coding:utf-8 -*-
# @time    : 2021/9/5 6:04
# @Author  : zhang jin xia
# @Filename: PyCharm

from appium.webdriver.common.mobileby import MobileBy
from app_po_project.app_project.page.base_page import BasePage


class MainPage(BasePage):
    # 提取定位元素
    _addresslist_ele=(MobileBy.XPATH, "//*[@text='通讯录']")

    def goto_addresslist(self):
        from app_po_project.page.add_resslist_page import AddressListPage
        # 点击通讯录,*
        self.find_and_click(*self._addresslist_ele)
        # 返回通讯录页面
        return AddressListPage(self.driver)